﻿@model QingzimaLogicModel.ShuiLM
@{
    ViewBag.Title = "Update";
    Layout = "~/Views/Shared/_HoutaiLayout.cshtml";
}
<script src="@Url.Content("~/Content/kindeditor/kindeditor.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Content/kindeditor/lang/zh_CN.js")" type="text/javascript"></script>
<script type="text/javascript">
    KindEditor.ready(function (K) {
        var editor = K.create('textarea[name="HtmlTextArea"]', {
            uploadJson: '../../Content/kindeditor/upload_json.ashx',
            fileManagerJson: '../../Content/kindeditor/file_manager_json.ashx',
            allowFileManager: true,
            afterCreate: function () {
                var self = this;
            }
        });
        prettyPrint();
    });
</script>
<div class="content-box">
    <div class="content-box-header">
        <h3>添加产品</h3>
    </div>
        @using (@Html.BeginForm("Update", "HoutaiShui", FormMethod.Post, new { enctype = "multipart/form-data" }))
    {
    <div class="content-box-content">
        <p>@Html.HiddenFor(i => i.ID)
            <label>产品标题</label>
            @Html.TextBoxFor(i => i.Biaoti, new { @class = "text-input medium-inpu" })
            <span style="color: red">@ViewBag.State</span>
            <br />
        </p>
        <p>
            <label>缩略图</label>
            <input name="file" id="file" type="file" />@Html.HiddenFor(i => i.Tupian)
        </p>
        <p>
            <label>产品内容</label>
           <textarea name="HtmlTextArea" style="width: 800px; height: 400px;">@ViewBag.Neirong</textarea>
        </p>
        <p>
            <input class="button" type="submit" value="提交" />
        </p>
        <div class="clear">
        </div>
    </div>
    }
</div>
